<?php

namespace SunAdmin\Model;

use think\Model;

class AccountModel extends Model
{
    protected $table = 'sunadmin_account';

    public function setPasswordAttr($value)
    {
        return password_hash($value, PASSWORD_BCRYPT);
    }
	
	public function groupInfo(){
		return $this->hasOne(AccountGroupModel::class,'id','group_id');
	}
}